package com.zys.el.time.service;

import com.zys.el.time.dto.CommentDTO;
import com.zys.el.time.dto.Page;
import com.zys.el.time.dto.ScrollPage;
import com.zys.el.time.entity.Comment;
import com.zys.el.time.vojo.CommentVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zys.el.time.vojo.RepliedVo;


public interface CommentService extends IService<Comment> {

    Boolean addComment(CommentDTO commentDTO);

    void removeByIdWithReplied(String commentId, String rid);

    ScrollPage getRootCommentPage(Long thinkingId, Long max, int offset, int size);

    ScrollPage<RepliedVo> getRepliedPage(Long rootCommentId, Long max, int offset, int size);

    RepliedVo getRepliedVoById(Long commentId);

    CommentVo getCommentVoById(Long commentId);
}
